package com.dowsure.apisaas.model;

import com.dowsure.apisaas.annotation.RequestParamValidated;
import com.dowsure.apisaas.enums.YesNoEnums;
import lombok.Data;

/**
 * @description: webhook
 * @author: Dowsure
 * @create: 2022-02-16 16:44
 **/
@Data
public class WebhookRequestParams {

    /**
     * 通知URL
     */
    @RequestParamValidated(required = true, msg = "通知URL", maxLen = 200)
    private String notifyUrl;

    /**
     * 是否需要接收offer发送通知，默认NO
     * YES、NO
     */
    @RequestParamValidated(required = true, msg = "是否需要接收offer发送通知")
    private YesNoEnums offerSentNotify;

    /**
     * 是否需要流量推送通知，默认NO
     * YES、NO
     */
    @Deprecated
    @RequestParamValidated(required = true, msg = "是否需要流量推送通知")
    private YesNoEnums pushNotify;

    /**
     * 是否需要强制划扣结果通知，默认NO
     * YES、NO
     */
    @RequestParamValidated(required = true, msg = "是否需要强制划扣结果通知")
    private YesNoEnums pspForceRepayNotify;

    /**
     * 是否需要撤销强制划扣结果通知，默认NO
     * YES、NO
     */
    @RequestParamValidated(required = true, msg = "是否需要撤销强制划扣结果通知")
    private YesNoEnums pspCancelForceRepayNotify;

    /**
     * 是否需要平台账户锁定通知，默认NO
     * YES、NO
     */
    @RequestParamValidated(required = true, msg = "是否需要平台账户锁定通知")
    private YesNoEnums platformAccountLockNotify;
}
